//持久化
var set_localStorage = (name, data) => {
    window.localStorage.setItem(name, data);
};
var get_localStorage = name => {
    return window.localStorage.getItem(name);
};
var remove_localStorage = name => {
    window.localStorage.removeItem(name);
};

//当前会话
var set_sessionStorage = (name, data) => {
    window.sessionStorage.setItem(name, data);
};
var get_sessionStorage = name => {
    return window.sessionStorage.getItem(name);
};
var remove_sessionStorage = name => {
    window.sessionStorage.removeItem(name);
};

export {
    set_localStorage,
    get_localStorage,
    remove_localStorage,
    set_sessionStorage,
    get_sessionStorage,
    remove_sessionStorage
};
